module BCDto7(in,out);
input[5:0] in;
output reg[6:0] out;
always @* begin
	case(in)
	6'b000000:out =7'b1000000;//output 0
	6'b000001:out =7'b1001111;//output 1
	6'b000010:out =7'b0100100;//outout 2
	6'b000011:out =7'b0110000;//3
	6'b000100:out =7'b0011001;//4
	6'b000101:out =7'b0010010;//5
	6'b000110:out =7'b0000010;//6
	6'b000111:out =7'b1111000;//7
	6'b001000:out =7'b0000000;//8
	6'b001001:out =7'b0010000;//9
	default :out  =7'b1111111;
	endcase
end
endmodule
